<?php

namespace App\Policies;

use App\Models\User;
use App\Models\ForumTopic;

class ForumTopicPolicy extends Policy
{
    public function update(User $user, ForumTopic $forum_topic)
    {
        return $user->isAuthorOf($forum_topic);
    }

    public function destroy(User $user, ForumTopic $forum_topic)
    {
      return $user->isAuthorOf($forum_topic);

    }
}
